from django.shortcuts import *

from django.views import *
from libs.captcha.captcha import *

class ImageCodeView(View):
    def get(self, request):
        txt,image=captcha.generate_captcha()

        return HttpResponse(image,content_type='image/jpeg')
